home *** CD-ROM | disk | FTP | other *** search
- Path: gwen.pcug.co.uk!news
- From: simon@epsilon.win-uk.net (Simon Ho)
- Newsgroups: comp.sys.m68k
- Subject: M68K asm beginner with a problem
- Date: Tue, 02 Jan 1996 01:55:49 GMT
- Organization: The PC User Group, UK
- Message-ID: <30e88c51.9635879@nntp.ibmpcug.co.uk>
- Reply-To: simon@epsilon.win-uk.net
- NNTP-Posting-Host: am055.du.pipex.com
- X-Newsreader: Forte Agent .99d/32.168
-
- Hi
-
- I trying my hand at assembly language on the m68k cpu. I am trying to
- program a small program to set up a list using dc.w command (for some
- insert/delete routines later) but aren't quite sure how to implement
- it.
-
- To clarify, I have a list of values. I want to set up an 'array'
- with the value and an address pointer to the next value. Ideally, I
- would SECT this so that it can go in any available part of memory.
-
- Do I have to set up loads of move.w commands?
-
- Do I just
-
- dc.w. $200, 3, $202, 4, etc ?
-
- or what?
-
- This should allow me to program a routine to insert a value at the end
- of the array but with the pointer of the next lowest number pointing
- to that value and then have the pointer associated with that value
- pooint to the next highest value.
-
- TIA
-
- Simon
-